﻿namespace Jsl.FxCop
{
    using System.Linq;
    using Microsoft.FxCop.Sdk;
    using Microsoft.VisualStudio.TestTools.UnitTesting;

    [TestClass]
    public class TestCciHelper
    {
#pragma warning disable 0649
        private string field;
#pragma warning restore 0649
        public string Field
        {
            get { return this.field; }
        }

        [TestMethod]
        public void Can_get_field_from_simple_getter()
        {
            var method = NodeHelper.GetMethod(() => this.field);

            //var method = TypeNodeHelper.GetTypeNode(typeof(Targets.ResolveFieldTarget))
            //    .GetMethod(Identifier.For("SimpleField"));
            //var flow = new StatementFlow(method);
            //var expressionStatement = (ExpressionStatement)flow.Statements.ElementAt(0);
        }
    }
}